<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>SGS</title>
<link href="./css/sgs.css" rel="stylesheet" type="text/css" media="all" />
<script type="text/javascript" src="/pages/js/common.js"></script>
<script type="text/javascript" src="/sgs/pages/js/sgs_cmd_handler.js"></script>
<script type="text/javascript">
function startGame(){
    for(var i = 0; i < 8; i++){
        var statusDiv = _('status_'+i);
        if(statusDiv != null && statusDiv.innerHTML.indexOf('好了') < 0){
            alert('还有人在犹豫呢，再等等吧！');
            return;
        }
    }
    send('START');
}
</script>
</head>
<body>
    <div id="main">
        <div id="table_pane">
            <div id="other_player_pane">
                <div id="0" class="other-player"></div>
                <div id="1" class="other-player"></div>
                <div id="2" class="other-player"></div>
                <div id="3" class="other-player"></div>
                <div id="4" class="other-player"></div>
                <div id="5" class="other-player"></div>
                <div id="6" class="other-player"></div>
            </div>
            <div id="game_status" align="center"></div>
            <div id="temp_pane" align="center"></div>
        </div>
        <div id="right_side"></div>
        <div id="op_pane">
            <div id="equip">
                <div class="hp" id="hp">HP值</div>
                <div class="equip-item" id="weapon">武器</div>
                <div class="equip-item" id="defence">防具</div>
                <div class="equip-item" id="horse">战马</div>
            </div>
            <div id="card">
                <div id='role' class="role-unknown">未知</div>
                <div id="judge">判定区</div>
                <div id="status">观望</div>
                <div id="hand"> </div>
            </div>
            <div id="figure">
                <div class="figure-top">
                    <div class="action-pane">
                        <input id="btn_ok" class="action" type="button" value="确定" onclick="okOnClick();" />
                        <input id="btn_cancel" class="action" type="button" value="取消" onclick='cancelOnClick();'/>
                    </div>
	                <div id="wj" class="image"></div>
                </div>
                <div class="skill-row">
                    <div id="skill_0" class="skill"></div>
                    <div id="skill_1" class="skill"></div>
                </div>
                <div class="skill-row">
                    <div id="skill_2" class="skill"></div>
                    <div id="skill_3" class="skill"></div>
                </div>
            </div>
        </div>
    </div>
</body>
<script type="text/javascript">
send('JOIN,' + getRequestArgs('uname'));
</script>
</html>
